<?php
    include "admin_type.php";


$name=$_REQUEST['name'];
$img=$_REQUEST['img'];
// var_dump($id);

mysqli_select_db($conn,"shopping");

  $sql =  "insert into type(name,img) values ('$name','$img')";

   $result=mysqli_query($conn,$sql);
     

    if (!$result){
        echo '数据添加失败！';
    }else{
        echo '数据添加成功！';
    }
    
    mysqli_close($conn);
?>
